﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace NFit.Core.Config.Xml
{
    /// <summary>
    /// Configuration element mapped to a class
    /// </summary>
    public class NFitDynamicElement : ConfigurationElement
    {
        /// <summary>
        /// The name of the data source
        /// </summary>
        [ConfigurationProperty("name")]
        public string Name
        {
            get { return (string)base["name"]; }
        }

        /// <summary>
        /// The type of the data source
        /// </summary>
        [ConfigurationProperty("type")]
        public string Type
        {
            get { return (string)base["type"]; }
        }

        /// <summary>
        /// Properties for building the data source
        /// </summary>
        [ConfigurationProperty("arguments")]
        public KeyValueConfigurationCollection Arguments
        {
            get { return (KeyValueConfigurationCollection)base["arguments"]; }
        }

        
    }
}
